import 'package:flutter/cupertino.dart';

// MVVM 公共模型层
class BaseModel with ChangeNotifier{

  bool isDispose=false;

  @override
  void dispose() {
    super.dispose();
    isDispose=true;
  }

  @override
  void notifyListeners() {
    if(!isDispose){
      super.notifyListeners();
    }
  }
}